<%@page import="db_interaction.Fotos"%>
<div class="sidebar">
    <%
        Fotos f = new Fotos();
        String caminho_foto_user = new String();
        //String email_user_login = (String) session.getAttribute("email");
        caminho_foto_user = f.SelectFoto((String) session.getAttribute("email"));

        if (caminho_foto_user == null) {
            caminho_foto_user = "default_photo.jpg";
        }

    %>
    <div class="gadget">
        <h2 class="star"><%= session.getAttribute("name")%></h2>      
        <img src="<% out.print("/TheHive/images/" + caminho_foto_user);%>" width="168px"></img>
        <a href="/TheHive/profile/EditPersonalData.jsp" style="color: #AC9595; text-decoration:none; margin-left: 10px">About</a>
    </div>

    <div class="search">
        <form method="get" id="search" action="/TheHive/others/ShowSearch.jsp">
            <span style="width: 170px; margin-left: 36px;">
                <input type="text" value="Procurar pessoas..." name="search" id="s" style="width: auto;"/>
                <input name="search" type="image" src="/TheHive/images/search.gif" value="Go" id="searchsubmit" class="btn" style="margin-top: -29px; margin-left: 135px;" />
            </span>
        </form>
        <!--/searchform -->
        <div class="clr"></div>
    </div>


    <div class="gadget">
        <h2 class="star"><span>Sidebar</span> Menu</h2>
        <div class="clr"></div>
        <ul class="sb_menu">
            <li><a href="/TheHive/login/MyProfile.jsp">Profile</a></li>
            <li><a href="/TheHive/friends/SeeFriends.jsp">Friends</a></li>
            <li><a href="/TheHive/messages/messages.jsp">Messages</a></li>
            <li><a href="/TheHive/photos/SeePhotos.jsp">Photos</a></li>
        </ul>
    </div>
</div>
<div class="clr"></div>
</div>
</div>
</div>
</html>